package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyMovieMapper;
import com.ruoyi.system.domain.HyMovie;
import com.ruoyi.system.service.IHyMovieService;

/**
 * 影视Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
@Service
public class HyMovieServiceImpl implements IHyMovieService 
{
    @Autowired
    private HyMovieMapper hyMovieMapper;

    /**
     * 查询影视
     * 
     * @param movieId 影视主键
     * @return 影视
     */
    @Override
    public HyMovie selectHyMovieByMovieId(Long movieId)
    {
        return hyMovieMapper.selectHyMovieByMovieId(movieId);
    }

    /**
     * 查询影视列表
     * 
     * @param hyMovie 影视
     * @return 影视
     */
    @Override
    public List<HyMovie> selectHyMovieList(HyMovie hyMovie)
    {
        return hyMovieMapper.selectHyMovieList(hyMovie);
    }

    /**
     * 新增影视
     * 
     * @param hyMovie 影视
     * @return 结果
     */
    @Override
    public int insertHyMovie(HyMovie hyMovie)
    {
        return hyMovieMapper.insertHyMovie(hyMovie);
    }

    /**
     * 修改影视
     * 
     * @param hyMovie 影视
     * @return 结果
     */
    @Override
    public int updateHyMovie(HyMovie hyMovie)
    {
        return hyMovieMapper.updateHyMovie(hyMovie);
    }

    /**
     * 批量删除影视
     * 
     * @param movieIds 需要删除的影视主键
     * @return 结果
     */
    @Override
    public int deleteHyMovieByMovieIds(Long[] movieIds)
    {
        return hyMovieMapper.deleteHyMovieByMovieIds(movieIds);
    }

    /**
     * 删除影视信息
     * 
     * @param movieId 影视主键
     * @return 结果
     */
    @Override
    public int deleteHyMovieByMovieId(Long movieId)
    {
        return hyMovieMapper.deleteHyMovieByMovieId(movieId);
    }
}
